home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
mac
/
ch09
/
09fig05.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
1KB
|
61 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright 1997 By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
Group {
children [
DEF Block1 Transform {
children DEF BlockShape Shape {
appearance Appearance {
material Material { }
}
geometry Box { }
}
},
DEF Block1Sensor PlaneSensor {
offset 0.0 0.0 0.0
}
]
},
Group {
children [
DEF Block2 Transform {
translation 2.5 0.0 0.0
children USE BlockShape
},
DEF Block2Sensor PlaneSensor {
offset 2.5 0.0 0.0
}
]
},
Group {
children [
DEF Block3 Transform {
translation 1.5 2.0 0.0
children USE BlockShape
},
DEF Block3Sensor PlaneSensor {
offset 1.5 2.0 0.0
}
]
},
Group {
children [
DEF Block4 Transform {
translation 0.75 4.0 0.0
children USE BlockShape
},
DEF Block4Sensor PlaneSensor {
offset 0.75 4.0 0.0
}
]
}
]
}
ROUTE Block1Sensor.translation_changed TO Block1.set_translation
ROUTE Block2Sensor.translation_changed TO Block2.set_translation
ROUTE Block3Sensor.translation_changed TO Block3.set_translation
ROUTE Block4Sensor.translation_changed TO Block4.set_translation